<include file="Public:header"/>
<link rel="stylesheet" href="__STATIC__/admin/css/jquery-ui-1.8.13.custom.css" type="text/css"/>
<a href="{:U('Free/')}">返回</a>
<form action="" method="post" enctype="multipart/form-data">
    <table>
        <tr>
            <td>商场</td>
            <td>
                <select name="market" id="market">
                    <foreach name="market" item="m">
                        <option value="{$m.m_id}">{$m.m_name}</option>
                    </foreach>
                </select>
                <select name="floor" id="floor"></select>
                <select name="brand" id="brand"></select>
                <span class="must">*</span>
            </td>
        </tr>
        <tr>
            <td>标题:</td>
            <td>
                <input name="title" type="text" maxlength="50"/>
                <span class="must">*</span>
            </td>
        </tr>
        <tr>
            <td>数量:</td>
            <td>
                <input name="count" type="text" maxlength="50"/>
                <span class="must">*</span>
            </td>
        </tr>
        <tr>
            <td>开始时间:</td>
            <td>
                <input name="start_time" class="time" type="text" maxlength="50" readonly="readonly"/>
                <span class="must">*</span>
            </td>
        </tr>
        <tr>
            <td>结束时间:</td>
            <td>
                <input name="end_time" class="time" type="text" maxlength="50" readonly="readonly"/>
                <span class="must">*</span>
            </td>
        </tr>
        <tr>
            <td>领取时间:</td>
            <td>
                <input name="receive_start_time" class="time" type="text" maxlength="50" readonly="readonly"/>
                <span class="must">*</span>
            </td>
        </tr>
        <tr>
            <td>结束时间:</td>
            <td>
                <input name="receive_end_time" class="time" type="text" maxlength="50" readonly="readonly"/>
                <span class="must">*</span>
            </td>
        </tr>
        <tr>
            <td>商品图片:</td>
            <td>
                <input type="file" name="image">
                <span class="must">*</span>
            </td>
        </tr>
        <tr>
            <td>详细:</td>
            <td>
                {:W('OnlineEditor',array('name'=>'content'))}<span class="must">*</span>
            </td>
        </tr>
        <tr>
            <td colspan="2">
                <input type="submit" class="butj" id="button" value=" 提交 "/></td>
        </tr>
    </table>
</form>
<include file="Public:footer"/>
<script type="text/javascript" src="__STATIC__/admin/js/jquery-ui-1.8.13.custom.min.js"></script>
<script type="text/javascript">
    $(function() {
        $(".time").datepicker({
            changeMonth: true,
            changeYear: true,
            dateFormat: "yy-mm-dd"
        });
    });
    var floorUrl = "{:U('Floor/get/mid/')}";
    var brandUrl = "{:U('Fb/get/fid/')}";
    $('#market').adshow();
</script>